
package com.unc.allergyex.objects;

/**
 * This class is an object that stores all the information
 * necessary about a restaurant to display a map pin,
 * display the popup balloon, and to connect the balloon to a
 * restaurant menu results page.
 * 
 * It stores the latitude and longitude as doubles, and
 * the restaurant name, address, id in the database, and phone
 * as strings.
 * 
 * @author Abigail
 *
 */
public class MapRestaurant{

	private double lat, lon;
	private String rname;
	private String address;
	private String id;
	private String phone;
	
	/**
	 * This is the constructor for MapRestaurant. It sets class variables
	 * to the values that are passed to the constructor.
	 * 
	 * @param newId
	 * @param name
	 * @param theAddress
	 * @param lati
	 * @param longi
	 * @param phone
	 */
	public MapRestaurant(String newId, String name, String theAddress, double lati, double longi, String phone){
		rname = name;
		lat = lati;
		lon = longi;
		address = theAddress;
		id = newId;
		this.phone = phone;
	}
	/** Returns String restaurant name */
	public String getName(){
		return rname;
	}
	/** Returns String restaurant phone */
	public String getPhone(){
		return phone;
	}
	/** Returns double latitude */
	public double getLat(){
		return lat;
	}
	/** Returns double longitude */
	public double getLon(){
		return lon;
	}
	/** Returns String restaurant address */
	public String getAddress(){
		return address;
	}
	/** Returns restaurant's database id */
	public String getId(){
		return id;
	}
}	